<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>智能组卷</title>
    <link rel="stylesheet" href="../static/layui-v2.5.6/layui/css/layui.css">
    <script src="../static/layui-v2.5.6/layui/layui.js"></script>
    <script src="../static/js/jquery.min.js"></script>
    <script type="text/javascript"src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
<div>
    <form method="GET" class="layui-form layui-form-pane" action="/paper/VolumeChange">
        <b>选择题</b><br>
        <table class="layui-table" lay-skin="row" th:each="choiceQst:${choiceQsts}">
            <thead>
            <tr>
                <td colspan="4" th:text="${choiceQst.getChoiceQstInfo()}">问题</td>
            </tr>
            </thead>
            <tbody>
            <title>选择题</title>
            <tr th:if="${choiceQst.getPd()}==1" style="background-color: #baf8c3">
                <td >
                    <input th:if="${choiceQst.getChoiceQstOp1()}==${choiceQst.getMy()}" style="background: #0C0C0C;color: #0C0C0C" checked type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp1()}" th:title="A、+ ${choiceQst.getChoiceQstOp1()}"  disabled>
                     <input th:if="${choiceQst.getChoiceQstOp1()}!=${choiceQst.getMy()}" type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp1()}" th:title="A、+ ${choiceQst.getChoiceQstOp1()}" disabled>
                </td>

                <td >
                    <input th:if="${choiceQst.getChoiceQstOp2()}==${choiceQst.getMy()}" checked type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp2()}" th:title="B、+ ${choiceQst.getChoiceQstOp2()}" disabled>
                    <input th:if="${choiceQst.getChoiceQstOp2()}!=${choiceQst.getMy()}" type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp2()}" th:title="B、+ ${choiceQst.getChoiceQstOp2()}" disabled>
                </td>

                <td >
                    <input th:if="${choiceQst.getChoiceQstOp3()}==${choiceQst.getMy()}" checked  type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp3()}" th:title="C、+ ${choiceQst.getChoiceQstOp3()}" disabled>
                    <input th:if="${choiceQst.getChoiceQstOp3()}!=${choiceQst.getMy()}"  type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp3()}" th:title="C、+ ${choiceQst.getChoiceQstOp3()}" disabled>
                </td>
                <td >
                    <input th:if="${choiceQst.getChoiceQstOp4()}==${choiceQst.getMy()}" checked  type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp4()}" th:title="D、+ ${choiceQst.getChoiceQstOp4()}" disabled>
                     <input th:if="${choiceQst.getChoiceQstOp4()}!=${choiceQst.getMy()}"  type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp4()}" th:title="D、+ ${choiceQst.getChoiceQstOp4()}" disabled>
                </td>

            </tr>
            <tr th:if="${choiceQst.getPd()}==2" style="background-color: #f1b0b7">
                <td >
                    <input class="a1" th:if="${choiceQst.getChoiceQstOp1()}==${choiceQst.getMy()}" checked type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp1()}" th:title="A、+ ${choiceQst.getChoiceQstOp1()}"  disabled>
                    <input class="a1" th:if="${choiceQst.getChoiceQstOp1()}!=${choiceQst.getMy()}" type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp1()}" th:title="A、+ ${choiceQst.getChoiceQstOp1()}" disabled>
                </td>

                <td >
                    <input class="a1" th:if="${choiceQst.getChoiceQstOp2()}==${choiceQst.getMy()}" checked type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp2()}" th:title="B、+ ${choiceQst.getChoiceQstOp2()}" disabled>
                    <input class="a1" th:if="${choiceQst.getChoiceQstOp2()}!=${choiceQst.getMy()}" type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp2()}" th:title="B、+ ${choiceQst.getChoiceQstOp2()}" disabled>
                </td>

                <td >
                    <input class="a1" th:if="${choiceQst.getChoiceQstOp3()}==${choiceQst.getMy()}" checked  type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp3()}" th:title="C、+ ${choiceQst.getChoiceQstOp3()}" disabled>
                    <input class="a1" th:if="${choiceQst.getChoiceQstOp3()}!=${choiceQst.getMy()}"  type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp3()}" th:title="C、+ ${choiceQst.getChoiceQstOp3()}" disabled>
                </td>
                <td >
                    <input class="a1" th:if="${choiceQst.getChoiceQstOp4()}==${choiceQst.getMy()}" checked  type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp4()}" th:title="D、+ ${choiceQst.getChoiceQstOp4()}" disabled>
                    <input class="a1" th:if="${choiceQst.getChoiceQstOp4()}!=${choiceQst.getMy()}"  type="radio" th:name="${choiceQst.getChoiceQstId()}" th:value="${choiceQst.getChoiceQstOp4()}" th:title="D、+ ${choiceQst.getChoiceQstOp4()}" disabled>
                </td>
            </tr>
            </tbody>
        </table>
<!--        <div class="layui-form-item">-->
<!--            <div class="layui-input-block">-->
<!--                <button class="layui-btn" lay-submit lay-filter="formDemo">交卷</button>-->
<!--            </div>-->
<!--        </div>-->
    </form>

</div>
<script>
    layui.use('form', function(){
        var form = layui.form;

        //提交
        // form.on('submit(formDemo)', function(data){
        //     layer.msg(JSON.stringify(data.field));
        //     return false;
        // });
    });


</script>
</body>
</html>